package org.dromara.system.controller.system;

import jakarta.annotation.Resource;
import org.dromara.common.core.domain.R;
import org.dromara.system.domain.InfluencerGoodsAnalysis;
import org.dromara.system.service.InfluencerGoodsAnalysisService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * <br>
 *
 * <p>- <br>
 *
 * @author shenhan
 * @version 1.0
 * @date: 2024/8/12
 * @description:
 */
@RestController
@RequestMapping("/demo")
public class InfluencerGoodsAnalysisController {
    @Resource
    private InfluencerGoodsAnalysisService influencerGoodsAnalysisService;

    @GetMapping("/test")
    public R<Void> test() {
        InfluencerGoodsAnalysis analysis = new InfluencerGoodsAnalysis();
        analysis.setEndTimestamp(new Date());
        influencerGoodsAnalysisService.insertNewItem(analysis);
        return R.ok();
    }

}
